import { sequelize } from './sequelize.js';
// import User from '../model/User.js'

// 同步模型到数据库
export const sync = async function () {
    try {
        await sequelize.authenticate();
        console.log('数据库连接正常');
    } catch (error) {
        console.error('数据库连接失败:', error);
    }
    // {force:true}
    await sequelize.sync()
}